var getMessagingConfig = function($modal, $filter, $state, messagingService){



// var searchDataResolver = function(data){
//		var results = new Array();
//		for(var i=0; i<data.length; i++){
//
//			var item = {};
//			
//			var affinitystr = '';
//			if (data[i].affinities != undefined) {
//				affinitystr = data[i].affinities.join();
//          }
//			
//			item['component'] = data[i].component.deviceDescription;
//			item['poolId'] = data[i].poolId;
//			item['name'] = data[i].name;
//			item['description'] = data[i].description;
//			item['type'] = localize.getLocalizedString(data[i].type);
//			item['incomingCache'] = data[i].isDefault;
//			item['preferred'] = data[i].preferredInSameSpeed;
//			item['storageContainer'] = localize.getLocalizedString(data[i].storageContainer);
//			item['desiredNumberOfActive'] = data[i].desiredNumberOfActive;
//			item['accessSpeed'] = localize.getLocalizedString(data[i].connectionSpeed);
//			item['affinity'] = affinitystr;
//			item['isActive'] = data[i].isActive;
//			item['incompleteSetup'] = data[i].storageLocations.length <= 0;
//
//			results.push(item);
//		}
//		return results;
//	};


	var config = {
	
	
//	getSearchDataPromise : function(filter) {
//	     return storagepoolService.getStoragePools(filter).then(function(response){
//          	    return searchDataResolver(response.data);
//              }, function(response){
//                  console.log('getSearchTableData failed\t'+response.status);
//                  return {};
//              });
//	},
//	
//	getPoolTypePromise : function() {
//	     return storagepoolService.getStoragePoolTypes().then(function(response){
//          	    var poolTypes = [];
//          	    for(var i=0; i<response.data.length; i++) {
//          	    	poolTypes.push(response.data[i]);
//          	    }
//          	    return poolTypes;
//              }, function(response){
//                  console.log('getPoolType failed\t'+response.status);
//                  return {};
//              });
//	},
//	
	chatFrameTemplateUrl: 'views/chatFrame.html',
	inputFieldPanelTemplateURL: 'views/inputTextField.html',
//  doNew: function(scope){
//			$state.go('storagepool.detail',{
//				action:'add',
//				poolId:''
//			});
//		},
//	doEdit: function(scope){
//			var storagePool = scope.searchTableSelections[0];
//			$state.go('storagepool.detail',{
//				action:'edit',
//				poolId:storagePool.poolId
//			});
//		},
//	doDuplicate: function(scope){
//			var storagePool = scope.searchTableSelections[0];
//			$state.go('storagepool.detail',{
//				action:'duplicate',
//				poolId:storagePool.poolId
//			});
//		},
//	doDelete: function(scope){
//			var storagePool = scope.searchTableSelections[0];
//			var confirm_template = '<b>$0</b><br/><div style="width:100%;text-align:center;">$1</div>';
//			var confirm_html = scope.format(confirm_template, [scope.getLocalizedString('storagepool_confirm_delete_msg'), storagePool.name]);
//			if(!confirm(confirm_html)) {
//			   return;
//			} else {
//			    storagepoolService.deleteStoragePool(storagePool.poolId, storagePool.component).then(function(response){
//				   if(response.status === 200 || response.status === 204){
//				      scope.searchClicked();
//				   }else{
//					  alert(response.data);
//				   }
//			    });
//			}
//		},
//		isButtonEnabled : function(scope){
//			return scope.searchTableSelections.length != 0;
//		}
//	};


	return config;
}
